layui.use(['jquery','form'],function() {
    var $ = layui.jquery;
    var form = layui.form;
    var product = JSON.parse(localStorage.getItem('product'));
    $('#productCode').val(product.productCode);
    $('#productName').val(product.productName);
    $('#currentpriceProduct').val(product.currentpriceProduct);
    $('#productSate').val(product.productSate);
    $('#productLabel').val(product.productLabel);
    $('#productDescription').val(product.productDescription);
    form.render();
})